package com.example.demo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author 程序员小洋
 * @version 2022.3
 * @date 2023/5/9 10:49
 * @title 检测表的实体类
 */
@SuppressWarnings("all")
public class Detection {

    /**
     * id
     */
    private Integer id;

    /**
     * 检测点名称
     */
    private String name;

    /**
     * 检测点地址
     */
    private String address;

    /**
     * 实时功率
     */
    private String power;

    /**
     * 实时电压
     */
    private String voltage;

    /**
     * 状态
     */
    private String state;

    /**
     * 上报时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createtime;

    /**
     * 备注
     */
    private String notes;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    public String getVoltage() {
        return voltage;
    }

    public void setVoltage(String voltage) {
        this.voltage = voltage;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @Override
    public String toString() {
        return "Detection{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", power='" + power + '\'' +
                ", voltage='" + voltage + '\'' +
                ", state='" + state + '\'' +
                ", createtime=" + createtime +
                ", notes='" + notes + '\'' +
                '}';
    }
}
